package com.panopset.sf;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics2D;

import javax.swing.JPanel;
import javax.swing.JTextField;

import com.panopset.sf.jnlp.AbstractPanopsetSwingFrame;

/**
 * 
 * @author Karl Dinwiddie
 * 
 */
public final class TestApp extends AbstractPanopsetSwingFrame {

	/**
	 * 100.
	 */
	private static final int W = 100;

	/**
	 * 100.
	 */
	private static final int H = 100;

	/**
	 * 
	 * @param s
	 *            not used.
	 */
	public static void main(final String... s) {
		new TestApp().show();
	}

	/**
	 * 30 cols for test.
	 */
	private static final int TEST_COLS = 30;

	@Override
	public JPanel createPanel(final Windoc w) {
		JPanel p = w.cf.createPanel(new FlowLayout());
		JTextField ktf = w.cf.createKeyedTextField(w, "x");
		ktf.setColumns(TEST_COLS);
		p.add(ktf);
		return p;
	}
}
